#include <iostream>
#include <string>
using namespace std;
int main(){
string a;
getline(cin, a);
int number = 0;
string word;
if (word == "zero") {number = 0;}
else if (word == "one") {number = 1;}
else if (word == "two") {number = 2;}
else if (word == "three") {number = 3;}
else if (word == "four") {number = 4;}
else if (word == "five") {number = 5;}
else if (word == "six") {number = 6;}
else if (word == "seven") {number = 7;}
else if (word == "eight") {number = 8;}
else if (word == "nine") {number = 9;}
else {cout << "Wrong input" << endl;}
    

    if (number < 100 or number > 999) {
        cout << "Wrong input" << endl;
        
    }
    else{cout<<number;}
}